﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: ProductDataEntity.cs
// 修改时间：2020-9-8 10:40:08
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：ProductData 的实体类.
	/// </summary>
	[Table("ProductData")]
	public partial class ProductDataEntity
	{
		#region Properties
		private int? _id = 0;
		/// <summary>
		/// ID(主键)(自增长)
		/// </summary>
		[Column("ID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? ID
		{
			get {return _id;}
			set {_id = value;}
		}
		
		private int? _productID = 0;
		/// <summary>
		/// 所属商品ID 对应GeneralID为实连接
		/// </summary>
		[Column("ProductID",TypeName="int")]
		public int? ProductID
		{
			get {return _productID;}
			set {_productID = value;}
		}
		
		private System.String _tableName = string.Empty;
		/// <summary>
		/// 表名
		/// </summary>
		[Column("TableName",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String TableName
		{
			get {return _tableName;}
			set {_tableName = value;}
		}
		
		private System.String _propertyValue = string.Empty;
		/// <summary>
		/// 属性值。如：红色|加大码，用|分隔几个属性的组合查询
		/// </summary>
		[Column("PropertyValue",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PropertyValue
		{
			get {return _propertyValue;}
			set {_propertyValue = value;}
		}
		
		private int? _stocks = 0;
		/// <summary>
		/// 库存数量
		/// </summary>
		[Column("Stocks",TypeName="int")]
		public int? Stocks
		{
			get {return _stocks;}
			set {_stocks = value;}
		}
		
		private int? _orderNum = 0;
		/// <summary>
		/// 订货数量
		/// </summary>
		[Column("OrderNum",TypeName="int")]
		public int? OrderNum
		{
			get {return _orderNum;}
			set {_orderNum = value;}
		}
		
		private int? _alarmNum = 0;
		/// <summary>
		/// 库存报警下限
		/// </summary>
		[Column("AlarmNum",TypeName="int")]
		public int? AlarmNum
		{
			get {return _alarmNum;}
			set {_alarmNum = value;}
		}
		
		private int? _buyTimes = 0;
		/// <summary>
		/// 购买次数
		/// </summary>
		[Column("BuyTimes",TypeName="int")]
		public int? BuyTimes
		{
			get {return _buyTimes;}
			set {_buyTimes = value;}
		}
		
		private double? _weight = 0.0f;
		/// <summary>
		/// 商品重量
		/// </summary>
		[Column("Weight",TypeName="float")]
		public double? Weight
		{
			get {return _weight;}
			set {_weight = value;}
		}
		
		private double? _volume = 0.0f;
		/// <summary>
		/// 商品体积
		/// </summary>
		[Column("Volume",TypeName="float")]
		public double? Volume
		{
			get {return _volume;}
			set {_volume = value;}
		}
		
		private decimal? _price = 0;
		/// <summary>
		/// 零售价
		/// </summary>
		[Column("Price",TypeName="money")]
		public decimal? Price
		{
			get {return _price;}
			set {_price = value;}
		}
		
		private decimal? _price_Market = 0;
		/// <summary>
		/// 市场参考价
		/// </summary>
		[Column("Price_Market",TypeName="money")]
		public decimal? Price_Market
		{
			get {return _price_Market;}
			set {_price_Market = value;}
		}
		
		private decimal? _price_Activity = 0;
		/// <summary>
		/// 活动价
		/// </summary>
		[Column("Price_Activity",TypeName="money")]
		public decimal? Price_Activity
		{
			get {return _price_Activity;}
			set {_price_Activity = value;}
		}
		
		private decimal? _price_Settlement = 0;
		/// <summary>
		/// 结算价
		/// </summary>
		[Column("Price_Settlement",TypeName="money")]
		public decimal? Price_Settlement
		{
			get {return _price_Settlement;}
			set {_price_Settlement = value;}
		}
		
		private decimal? _price_Member = 0;
		/// <summary>
		/// 会员零售价
		/// </summary>
		[Column("Price_Member",TypeName="money")]
		public decimal? Price_Member
		{
			get {return _price_Member;}
			set {_price_Member = value;}
		}
		
		private decimal? _price_Agent = 0;
		/// <summary>
		/// 代理零售价
		/// </summary>
		[Column("Price_Agent",TypeName="money")]
		public decimal? Price_Agent
		{
			get {return _price_Agent;}
			set {_price_Agent = value;}
		}
		
		private decimal? _price_Wholesale1 = 0;
		/// <summary>
		/// 批发价1
		/// </summary>
		[Column("Price_Wholesale1",TypeName="money")]
		public decimal? Price_Wholesale1
		{
			get {return _price_Wholesale1;}
			set {_price_Wholesale1 = value;}
		}
		
		private decimal? _price_Wholesale2 = 0;
		/// <summary>
		/// 批发价2
		/// </summary>
		[Column("Price_Wholesale2",TypeName="money")]
		public decimal? Price_Wholesale2
		{
			get {return _price_Wholesale2;}
			set {_price_Wholesale2 = value;}
		}
		
		private decimal? _price_Wholesale3 = 0;
		/// <summary>
		/// 批发价3
		/// </summary>
		[Column("Price_Wholesale3",TypeName="money")]
		public decimal? Price_Wholesale3
		{
			get {return _price_Wholesale3;}
			set {_price_Wholesale3 = value;}
		}
		
		private int? _number_Wholesale1 = 0;
		/// <summary>
		/// 一次性购买此商品数量1
		/// </summary>
		[Column("Number_Wholesale1",TypeName="int")]
		public int? Number_Wholesale1
		{
			get {return _number_Wholesale1;}
			set {_number_Wholesale1 = value;}
		}
		
		private int? _number_Wholesale2 = 0;
		/// <summary>
		/// 一次性购买此商品数量2
		/// </summary>
		[Column("Number_Wholesale2",TypeName="int")]
		public int? Number_Wholesale2
		{
			get {return _number_Wholesale2;}
			set {_number_Wholesale2 = value;}
		}
		
		private int? _number_Wholesale3 = 0;
		/// <summary>
		/// 一次性购买此商品数量3
		/// </summary>
		[Column("Number_Wholesale3",TypeName="int")]
		public int? Number_Wholesale3
		{
			get {return _number_Wholesale3;}
			set {_number_Wholesale3 = value;}
		}
		
		private System.Boolean _isValid = false;
		/// <summary>
		/// 是否有效
		/// </summary>
		[Column("IsValid",TypeName="bit")]
		public System.Boolean IsValid
		{
			get {return _isValid;}
			set {_isValid = value;}
		}
		
		#endregion
	}
}
